/**
 * 
 */
package kr.co.insoft.core.model.comparison.daily;

import java.io.Serializable;

import kr.co.insoft.auth.model.security.User;
import flexjson.JSONSerializer;

/**
 * TABLE : T_BASE_EVENT
 * 
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
public class DailyEntityModel  implements Serializable {
	
	static final long serialVersionUID = -715645747810155810L;
	
	String venderId;
	String fromDate;
	String toDate;
	Long userid;
	String companyid;

	public String toString() {
		return (new JSONSerializer()).deepSerialize(this);
	}

	public void setAuth(User user) {
		this.userid = user.getId();
		this.companyid = user.getCompanyId();
	}

	/**
	 * @return the venderId
	 */
	public String getVenderId() {
		return venderId;
	}

	/**
	 * @param venderId the venderId to set
	 */
	public void setVenderId(String venderId) {
		this.venderId = venderId;
	}

	/**
	 * @return the fromDate
	 */
	public String getFromDate() {
		return fromDate;
	}

	/**
	 * @param fromDate the fromDate to set
	 */
	public void setFromDate(String fromDate) {
		this.fromDate = fromDate;
	}

	/**
	 * @return the toDate
	 */
	public String getToDate() {
		return toDate;
	}

	/**
	 * @param toDate the toDate to set
	 */
	public void setToDate(String toDate) {
		this.toDate = toDate;
	}

	/**
	 * @return the userid
	 */
	public Long getUserid() {
		return userid;
	}

	/**
	 * @param userid the userid to set
	 */
	public void setUserid(Long userid) {
		this.userid = userid;
	}

	/**
	 * @return the companyid
	 */
	public String getCompanyid() {
		return companyid;
	}

	/**
	 * @param companyid the companyid to set
	 */
	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

}
